package service;
import backend.PostgreSQLServer;
public class DatabaseManager {
    private static volatile PostgreSQLServer instance;

    public static PostgreSQLServer getInstance() throws Exception {
        if (instance == null) {
            synchronized (DatabaseManager.class) {
                if (instance == null) {
                    instance = new PostgreSQLServer(
                            "frp-hub.com",
                            "48882",
                            "postgres",
                            "20050109",
                            "HealthSystem"
                    );
                }
            }
        }
        return instance;
    }

}
